package com.yylany.mapper;

import com.yylany.pojo.TbBrand;
import com.yylany.utils.MyMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Description: web-parent
 *
 * @author <a href="mailto:17777502615@163.com">yaoyonglong</a>
 * @date 2018/12/17
 * @since 1.0.0
 */
public interface TbBrandMapper extends MyMapper<TbBrand> {


    /**
     * 根据 CategoryId 查询它 所关联的所有品牌
     *
     * @param id CategoryId
     * @param count 限制的数量
     * @return 当前分类的品牌集合
     */
    List<TbBrand> findAllByCategoryId(@Param("id") Integer id, @Param("count") Integer count);


}